import hug


@hug.cli()
@hug.get(examples='name=Timothy&age=26')
@hug.local()
def happly_birthday(name: hug.types.text,
                    age: hug.types.number,
                    hug_timer=3):
    return {'message': f'Happy {age} Birthday {name}!',
            'took': float(hug_timer)}


if __name__ == '__main__':
    happly_birthday.interface.cli()